import request from '@/utils/request'

// 查询报障单列表
export function listReportOrder(query) {
  return request({
    url: '/report/ReportOrder/list',
    method: 'get',
    params: query
  })
}

// 查询报障单详细
export function getReportOrder(id) {
  return request({
    url: '/report/ReportOrder/' + id,
    method: 'get'
  })
}

// 新增报障单
export function addReportOrder(data) {
  return request({
    url: '/report/ReportOrder',
    method: 'post',
    data: data
  })
}

// 修改报障单
export function updateReportOrder(data) {
  return request({
    url: '/report/ReportOrder',
    method: 'put',
    data: data
  })
}

// 删除报障单
export function delReportOrder(id) {
  return request({
    url: '/report/ReportOrder/del/' + id,
    method: 'post'
  })
}


//重新打开报障单
export function reopenReportOrder(data) {
  return request({
    url: "/report/ReportOrder/reOpen",
    method: "post",
    data: data
  })
}

//评价报障单
export function starReportOrder(data) {
  return request({
    url: "/report/ReportOrder/star",
    method: "post",
    data: data
  })
}

//转移处理人
export function transferReportOrder(data) {
  return request({
    url: "/report/ReportOrder/transferDealUser",
    method: "post",
    data: data
  })
}

